package cn.school.service;


import cn.school.dao.AdminDao;
import cn.school.dao.GradeDao;
import cn.school.entity.Admin;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminService {
    @Autowired
    private AdminDao adminDao;
    public Admin login(String u, String p){
        {
                //AdminDao mapper = session.getMapper(AdminDao.class);
                return adminDao.login(u,p);

        }
    }
}
